<#ftl output_format="HTML" auto_esc=true>
<@h.commonHead title="后台管理系统" keywords="开源,永久免费" description="springrain开源系统管理后台"/>

<script type="text/javascript">
	jQuery(function(){ 
	       var _state="${(returnDatas.queryBean.pass)!''}";
	        jQuery("#pass").val(_state);
		
	});
	
</script>

</head>
<body>
	<div class="layui-layout layui-layout-admin">
		<@h.naviHeader /><@h.leftMenu />
			<!-- 主体内容开始 -->
			<div class="layui-tab layui-tab-brief">
				<ul class="layui-tab-title site-demo-title">
					 <li style="float:right;">

		             	<@shiro.hasPermission name="/system/selenium/htmlcaselog/list/export" >
				        	<button type="button"   class="layui-btn layui-btn-sm"><i class="layui-icon layui-icon-specil">&#xe609;</i>导出</button>
				        </@shiro.hasPermission>
		             
		             </li>
	       		</ul>
				
				<div class="layui-body layui-tab-content site-demo-body">
					<div class="layui-tab-item layui-show">
							<div class="layui-main">
						          <div id="LAY_preview">
						          <!-- 查询  开始 -->
							          <form class="layui-form layui-form-pane" id="searchForm" action="${ctx}/system/selenium/htmlcaselog/list" method="post">
							          <input type="hidden" name="pageIndex" id="pageIndex" value="${(returnDatas.page.pageIndex)!'1'}" /> 
							          <input type="hidden" name="sort" id="page_sort" value="${(returnDatas.page.sort)!'desc'}" />
							          <input type="hidden" name="order" id="page_order" value="${(returnDatas.page.order)!'id'}" />
									  <table class="layui-table search-wrap">
									  	<colgroup>
										    <col width="">
										    <col width="150">
										</colgroup>
							          	<tbody>
							          		<tr>
							          			<th colspan="2">执行日志搜索</th>
							          		</tr>
							          		<tr>
							          			<td>
							          				<div class="layui-inline">
									                    <label class="layui-form-label">执行记录</label>
									                    <div class="layui-input-inline">
									                           <input type="text" name="execId" value="${(returnDatas.queryBean.execId)!''}" placeholder="执行记录" class="layui-input">
									                    </div>
							                		</div>
							                		
							                	<div class="layui-inline">
                                                        <label class="layui-form-label">是否通过</label>
                                                        <div class="layui-input-inline">
                                                            <select name="pass" id="pass" class="layui-input">
                                                              <option value="">==请选择==</option>
                                                              <option value="1">是</option>
                                                              <option value="0">否</option>
                                                            </select>   
                                                        </div>
                                                    </div>
							                		
							                		

							          			</td>
							          			<td>
							          			   <div class="layui-inline">
									                    <button class="layui-btn" type="button" onclick="springrain.commonSubmit('searchForm');"><i class="layui-icon" style="top:4px;right:5px;">&#xe615;</i>搜索</button>
									                </div>
							          			</td>
							          		</tr>
							          	</tbody>
							          </table>
									  <!-- 查询  结束 -->
									</form>
									<!--start_export-->
									<table class="layui-table" lay-even>
									<!--start_no_export-->
										  <colgroup>
										    <col width="40">
										    <col width="120">
										    <col>
										  </colgroup>
										  <!--end_no_export-->
										  <!--first_start_export-->
											<thead>
												<tr>
												   <!--first_start_no_export-->
													<th colspan="19">执行日志列表<font id='recordsView' class='recorsView'>共<span></span>页,共 <span></span>条记录</font></th>
												</tr>
												<tr>
												
												 
												  <!--first_end_no_export-->
														<th id="th_userId" >执行人的Id</th>
														<th id="th_businessId" >入口用例Id</th>
														<th id="th_businessName" >入口用例的名称</th>
														<th id="th_execBusinessId" >当前执行的业务Id</th>
														<th id="th_execName" >当前执行的业务名称</th>
														<th id="th_operationId" >步骤的Id</th>
														<th id="th_operationName" >步骤的名称</th>
														<th id="th_browser" >浏览器</th>
														<th id="th_caseValue" >测试值</th>
														<th id="th_realResult" >实际值</th>
														<th id="th_pass" >是否通过</th>
														<th id="th_createTime" >执行时间</th>
														<th id="th_screenshot" >截屏</th>
														<th id="th_sortno" >排序</th>
													
												</tr> 
											</thead>
										  <!--first_end_export-->
										  <!--start_export-->
										   <tbody>
										    <#if (returnDatas.data??)&&(returnDatas.data?size>0)> 
										    	<#list	returnDatas.data as _data>
										    		<!--start_no_export-->
													<tr class="">
														
														<!--end_no_export-->
														<td >
															${(_data.userId)!''}
														</td>
														<td >
															${(_data.businessId)!''}
														</td>
														<td >
															${(_data.businessName)!''}
														</td>
														<td >
															${(_data.execBusinessId)!''}
														</td>
														<td >
															${(_data.execName)!''}
														</td>
														<td >
															${(_data.operationId)!''}
														</td>
														<td >
															${(_data.operationName)!''}
														</td>
														<td >
															chrome
														</td>
														<td >
															${(_data.caseValue)!''}
														</td>
														<td >
															${(_data.realResult)!''}
														</td>
														<td >
														
														<#if (_data.pass)??&&(_data.pass==1)>
														通过
														<#else>
														失败
														</#if>
														
														</td>
														<td >
															<!--日期型-->
														${((_data.createTime)?string('yyyy-MM-dd HH:mm:ss'))!''}
														</td>
														
														<td >
                                                           <a target="_blank"  href="${ctx}${(_data.screenshot)!'#'}">点击查看</a>
                                                        </td>
														
														<td >
															${(_data.sortno)!0}
														</td>
							
													</tr>
												</#list>
											 </#if>
											</tbody>
										</table>
										<!--last_end_export-->
									<#if returnDatas.page??> 
										<div id='laypageDiv'></div>
										<@h.layPage page=returnDatas.page /> 
									</#if>
								</div>
							</div>
						</div>
				</div>
			</div>
		<!-- 主体内容结束 -->
		<@h.footer />
	</div>
</body>
</html>

